/**
Copyright (c) 2008 Arnaud Fabre <arnaud333@gmail.com>

This file is part of Vos Tutos Offline.

Vos Tutos Offline is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vos Tutos Offline is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vos Tutos Offline.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _VTO_ZCODE_H
#define _VTO_ZCODE_H

#include <QString>
#include <QDomDocument>
#include <QDomElement>

#include "doc_part.h"
#include "doc_minitutorial.h"
#include "doc_bigtutorial.h"

class Zcode{

public:
	
	// Exports Methods
	
	static QDomElement partToDom(Part* part, QDomDocument& doc);
	static QDomElement miniToDom(MiniTutorial* mt, QDomDocument& doc, bool toBt = false);
	static QDomElement bigToDom(BigTutorial* bt, QDomDocument& doc);
	
	// Exports File Methods
	
	static void partToFile(Part* part, const QString& fname);
	static void miniToFile(MiniTutorial* mt, const QString& fname);
	static void bigToFile(BigTutorial* bt, const QString& fname);
	
/*
	// Import Methods
	
	static Part* partFromDom(const QDomElement de);
	static MiniTutorial* miniFromDom(const QDomElement de);
	static BigTutorial* bigFromDom(const QDomElement de);

	// Import File Methods
	static Part* partFromFile(const QString& fname);
	static MiniTutorial* miniFromFile(const QString& fname);
	static BigTutorial* bigFromFile(const QString& fname);
*/
};

#endif

